<?php
    include("checklogin.php");
    include("scripts.php");
    include("header.php");
    include("leftcolumn.php");
    include("content.php");
    
    $xtpl_index = new XTemplate("view/index.htm");
    
    $title  ="Trang chủ";
    
    $module = $_GET['module'];
    switch($module){
        case    'edit'      :   include("site/edit.php"); break;
        case    'pass'      :   include("site/change_pass.php"); break;
    }
    
    $xtpl_index -> assign('title', $title);
    $xtpl_index -> assign('scripts', $scripts);
    $xtpl_index -> assign('header', $header);
    $xtpl_index -> assign('leftcolumn', $leftcolumn);
    $xtpl_index -> assign('content', $content);
    $xtpl_index -> parse("INDEX");
    $xtpl_index -> out("INDEX");
?>